package com.breakfast.fun.data.entity.user.help;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/9/9.
 */
public class HelpData {
    private int id;
    private String title;
    private String content;

    public static HelpData objectFromData(String str) {

        return new Gson().fromJson(str, HelpData.class);
    }

    public static List<HelpData> arrayDataBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<HelpData>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
